package com.hongmeng.teamwork.service;

import com.hongmeng.teamwork.entity.po.TeamworkTaskUserRel;

import java.util.List;

/**
 * (TeamworkTaskUserRel)表服务接口
 *
 * @author makejava
 * @since 2023-11-16 11:12:01
 */
public interface ITeamworkTaskUserRelService {

    /**
     * 分页查询
     *
     * @param TeamworkTaskUserRel 筛选条件
     * @return 查询结果
     */
    List<TeamworkTaskUserRel> queryByCondition(TeamworkTaskUserRel TeamworkTaskUserRel);

    /**
     * 新增数据
     *
     * @param TeamworkTaskUserRel 实例对象
     * @return 实例对象
     */
    boolean insert(TeamworkTaskUserRel TeamworkTaskUserRel);

    void batchInsert(List<TeamworkTaskUserRel> teamworkTaskUserRelList);

    /**
     * 通过任务 Id 删除数据
     * @return 是否成功
     */
    boolean deleteByTaskId(Long taskId);

    void updateByTaskId(TeamworkTaskUserRel teamworkTaskUserRel);

    TeamworkTaskUserRel queryTaskId(Long taskId);
}
